linux shell下除了某個文件外的其他文件全部刪除的命令 Linux反選刪除文件 最簡單的方法是 # shopt -s extglob (打開extglob模式) # rm -fr !(file1) 如果是多個要排 ...